﻿@using MyInspiration.Models
@using Webdiyer.WebControls.Mvc
@model PagedList<IdeaList>
@{
    ViewBag.Title = "个人灵感区";
}
<link href="~/Content/index_person.css" rel="stylesheet" />
<script src="~/Scripts/gc-js/Dialog.js"></script>
<script src="~/Scripts/gc-js/Personal.js"></script>
<div class="panel panel-primary">
    <div class="panel-heading">
        <div id="haoidea-top">
            <div class="pull-right">@Session["nickName"]</div>
            <img class ="pull-right" src="@Session["Figureurl"]" />
        </div>
        <div>
            <h3>个人灵感区</h3>
        </div>
    </div>
    <div class="panel-body">
        <div id="haoidea_personal-head-btn">
            <button class="btn btn-default pull-right" id="btnAdd_Personal">添加灵感</button>
            @*<button class="btn btn-default pull-right" id="btnBackIndex">返回首页</button>*@
        </div>
        
        <table class="table table-striped table-bordered table-hover table-condensed">
            <caption class="text-center"><strong>灵感列表</strong></caption>
            <thead>
                <tr>
                    <th>灵感描述</th>
                    <th>发布人</th>
                    <th>产生时间</th>
                </tr>
            </thead>
            <tbody>
                @if (Model != null)
                {
                    foreach (var item in Model)
                    {
                        <tr>
                            <td>
                                <div class="form-group">
                                    <textarea class="form-control" rows="3" readonly>@item.idea_Dec</textarea>
                                </div>
                            </td>
                            <td>
                                @item.idea_Publisher
                            </td>
                            <td>
                                @item.idea_Create_Time.ToString("yyyy-MM-dd HH:mm:ss")
                            </td>
                        </tr>
                    }
                }



            </tbody>
        </table>
        
        @Html.Pager(Model, new PagerOptions { PageIndexParameterName = "id", CurrentPagerItemTemplate = "<span class=\"current\">{0}</span>", DisabledPagerItemTemplate = "<span class=\"disabled\">{0}</span>", Id = "badoopager" })
        <div id="footer" class="footer text-center">
            <a href="http://www.miitbeian.gov.cn/" target="_blank" rel="nofollow" style="color:#8d8d8d">鄂ICP备15002168号-2</a><br />
            <a href="http://mail.haoidea.wang/" target="_blank" rel="nofollow">企业邮箱登录</a>
        </div>
    </div>
</div>

